package org.smile.strate;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * action 接口
 * @author strive
 *
 */
public interface Action {

	public static final String SUCCESS = "success";
	public static final String FAIL = "fail";
	public static final String INPUT = "input";

	public static final int GET_TYPE=0;
	
	public static final int POST_TYPE=1;
	/**
	 * 初始化Actoin信息
	 * @param request
	 * @param response
	 * @param type
	 * @param encode
	 */
	public abstract void initPerterties(HttpServletRequest request,
			HttpServletResponse response, Integer type, String encode);

	public abstract String getEncode();

	public abstract HttpServletRequest getRequest();

	public abstract HttpServletResponse getResponse();

}